package com.test.demo.service.Imp;

import com.test.demo.dao.BalanceMapper;
import com.test.demo.model.Balance;
import com.test.demo.service.BalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/** 范琳*/
@Service
public class BalanceServiceImp implements BalanceService {

    @Autowired
    private BalanceMapper balanceMapper;

    @Override
    public Balance selectByPrimaryKeybal(Integer bid) {
        return balanceMapper.selectByPrimaryKeybal(bid);
    }

    @Override
    public List<Balance> getBid() {
        System.out.println("执行角色类型SQL语句");
        return balanceMapper.getBid();
    }
    //获取全部角色信息
    @Override
    public List<Balance> getAll2(){
        return  balanceMapper.getAll2();
    }
    //删除角色信息
    @Override
    public int delBalance(Integer bid) {
        return balanceMapper.delBalance(bid);
    }

    //新增角色信息
    @Override
    public int insertBalance(Balance balancemodel) {
        return balanceMapper.insertBalance(balancemodel);
    }
//更新角色信息
    @Override
    public int updateBalance(Balance balancemodel) {
        return balanceMapper.updateBalance(balancemodel);
    }


}
